﻿using System.Collections.Generic;
using System.ServiceModel;
using entities;

namespace ServiceLibrary
{
    [ServiceContract]
    public interface IExternalService
    {
        #region "CUSTOMER Management"

        [OperationContract]
        string CusAdd(string pIdentityNumber, string pCustomerName, string pCustomerPhone, string pCustomerEmail,
                            bool pCustomerSex);

        [OperationContract]
        string CusModify(string pIdentityNumber, string pCustomerName, string pCustomerPhone,
                       string pCustomerEmail, bool pCustomerSex);

        [OperationContract]
        string UpdateUserPW(string pUN, string pPW);

        [OperationContract]
        List<Customer> FindCustomerByName(string pCustomerName);

        [OperationContract]
        Customer FindCustomerByAccount(string pCustomerAccount);

        [OperationContract]
        Customer FindCustomerByIdentityNumber(string pIdentityNumber);

        [OperationContract]
        bool CusEmailCheck(string email);

        [OperationContract]
        bool CusIdCheck(string id);

        #endregion
    }
}